package com.xujiang.imitationcompanypj.data;

import android.content.Context;

import com.etekcity.vesync.common.plus.util.OkHttp3Utils;
import com.xujiang.imitationcompanypj.data.net.RetrofitUtils;

import okhttp3.OkHttpClient;

/**
 * Created by xujiang on 2017/4/5.
 */

public class Data {

    public static String BASE_SERVER_URL;

    public static void init(String baseUrl, OkHttpClient client){
        BASE_SERVER_URL = baseUrl;
        RetrofitUtils.get().init(baseUrl,client);

    }

    public static  void init(Context context, String baseUrl, OkHttp3Utils.Init init){
        init.setDefaultCache().initialization();
        init(baseUrl,OkHttp3Utils.get().getClient());
    }

    public static  void init(Context context,String baseUrl){
        init(context,baseUrl,OkHttp3Utils.init());
    }





}
